package com.mall_main.pojo.dto;

import lombok.Data;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;
import org.hibernate.validator.constraints.Range;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
@Validated
public class ShoppingCarDTO {
    @NotBlank
    private long uid;
    @NotBlank
    private  long gid;
    @Range(min=1,max = 1000,message = "最少添加1哥商品，最多添加1000个商品")
    private int number;
    @NotBlank
    private long sellerId;

}
